ef9c9d643f7a215ccf9949a5a20b1f8475f60d81,features/bsm/service/impl/src/main/java/org/opennms/netmgt/bsm/service/internal/DefaultBusinessServiceStateMachine.java,DefaultBusinessServiceStateMachine,explain,#BusinessService#Threshold#,495
Before Change
List<Status> statuses = weighStatuses(getGraph().getOutEdges(vertex));
// Reduce
Status result = threshold.reduce(statuses).orElse(MIN_SEVERITY);
ThresholdResultExplanation explanation = new ThresholdResultExplanation();
explanation.setStatus(result);
After Change
.collect(Collectors.toList());
// Reduce
Status reducedStatus = threshold.reduce(statusesWithIndices)
.orElse(new StatusWithIndices(MIN_SEVERITY, Collections.emptyList()))
.getStatus();
ThresholdResultExplanation explanation = new ThresholdResultExplanation();